package com.bl.weilan.dao.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "trade_c")
@ApiModel(value = "TradeCEntity", description = "三级分类")
@DynamicInsert
@DynamicUpdate
public class TradeCEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "一级分类")
    @Column(name = "trade_a")
    private String tradeA;

    @ApiModelProperty(value = "二级分类")
    @Column(name = "trade_b")
    private String tradeB;

    @ApiModelProperty(value = "投资机构数量")
    @Column(name = "invester_num")
    private int investerNum;

    @ApiModelProperty(value = "年融资额")
    @Column(name = "annual_financ")
    private String annualFinanc;

    @ApiModelProperty(value = "权重")
    private int weight;

    @ApiModelProperty(value = "值")
    private String value;

    @ApiModelProperty(value = "描述")
    private String descrepiton;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "图标")
    private String icon;
}
